package cn.net.lwj.moredb.control;

import cn.net.lwj.common.model.JsonResult;
import cn.net.lwj.moredb.service.TestService;
import cn.net.lwj.moredb.service.impl.SjtbServiceImpl;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoControl {

    @Resource
    private TestService testService;


    @Resource
    private SjtbServiceImpl sjtbService;



    @RequestMapping("/test")
    public JsonResult test(){
        return testService.test();
    }

    @RequestMapping("/sjtb")
    public JsonResult sjtb(){
        return sjtbService.sjtb();
    }

}
